<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script type="text/javascript" src="jquery-3.5.1.min.js"></script>
</head>
<body>
<h1 th:text="${commodity}"></h1>
<a href="javascript:create()">下单</a>
<a href="javascript:orderList()">订单列表</a>
</body>
</html>


<script type="text/javascript" th:inline="javascript">
    function create() {
        window.location.href = "/order/create";
    }
  function orderList() {
        window.location.href = "/list";
    }

</script>